﻿using Prism.Events;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PrismEventAggregator
{
    /// <summary>
    /// 为什么继承PubSubEvent而不是EventBase？因为继承EvetBase的话，就不能通过使用Subscribe注册方法
    /// </summary>
    public class EventMessage : PubSubEvent
    {

    }

    /// <summary>
    /// 第一个参数的
    /// </summary>
    public class EventMessageArgs : PubSubEvent<object>
    {

    }

    /// <summary>
    /// 多个参数就封装一个类 DataModel
    /// </summary>
    public class EventMessageArgs1 : PubSubEvent<DataModel>
    {

    }

    public class EventAction
    {
        public Action<bool> ResultAction { get; set; }
    }
}
